package com.yyk.yiliao.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yyk.yiliao.R;
import com.yyk.yiliao.ui.activity.detail.activity.PayPleaceOrder_Activity;
import com.yyk.yiliao.util.ToastUtil;
import com.yyk.yiliao.util.DialogUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class CommodityConfig_Activity extends AppCompatActivity {

    @BindView(R.id.ll_qxdd)
    LinearLayout llQxdd;
    @BindView(R.id.btn_go_to_pay)
    TextView     btnGoToPay;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_commodity_config);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.ll_qxdd, R.id.btn_go_to_pay})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_qxdd:
                AlertDialog dialog2 = DialogUtil.getIntanse().simpleDialog(this, null, "确定取消订单吗？", "确定", "再想想", new DialogUtil.AlertDialogListenter() {
                    @Override
                    public void queding() {
                        ToastUtil.showShort(CommodityConfig_Activity.this, "退出成功");
                    }

                    @Override
                    public void quxiao() {

                    }
                });
                dialog2.show();
                break;
            case R.id.btn_go_to_pay:
                Intent intent = new Intent(CommodityConfig_Activity.this, PayPleaceOrder_Activity.class);
                startActivity(intent);
                break;

        }
    }


}
